<template>
    <van-cell :to="`/detail/${it.art_id}`">
    <div :class="it.cover.type < 2 ? 'around' : ''"  >
      <div class="left">
        {{ it.title }}
      </div>
      <div class="right">
        <img :src="img" v-for="(img, index) in it.cover.images" :key="index" />
      </div>
    </div>
    <div class="footer">
      <div class="footleft">
        <div class="up">置顶</div>
        <div>{{ it.aut_name }}</div>
        <div>{{ it.comm_count }}评论</div>
        <div>{{ it.pubdate | time }}</div>
      </div>
      <i class="toutiao toutiao-guanbi"></i>
    </div>

</van-cell>
</template>

<script>
import moment from 'moment'
moment.locale('zh-CN')
export default {
    props:['it'],
};
</script>

<style lang="less" scoped>
.artice-list {
  margin-top: 188px;
  height: calc(100vh - 188px);
  overflow-y: auto;
}
.main {
  background-color: #3296fa;
  opacity: 0.9;
  overflow: hidden;
  .search {
    width: 555px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    height: 64px;
    margin: 12px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    .toutiao-sousuo {
      font-size: 40px;
      color: #fff;
      display: block;
      position: relative;
    }
    span {
      margin-left: 8px;
      font-size: 32px;
      color: #fff;
    }
  }
}
img {
  width: 232px;
  height: 146px;
}
.item {
  padding: 25px 23px 31px;
  background-color: #fff;
  border: 1px solid #edeff3;
  .left {
    font-size: 32px;
    margin-bottom: 29px;
    color: #3a3a3a;
  }
  .right {
    display: flex;
  }
  .footer {
    display: flex;
    font-size: 23px;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 31px;
    color: #b4b4b4;
    .footleft {
      width: 430px;
      display: flex;
      text-align: center;
      line-height: 22px;
      justify-content: space-between;
      .up {
        color: red;
      }
    }
    i {
      font-size: 26px;
    }
  }
  .around {
    display: flex;
    justify-content: space-between;
  }
}
.van-tabs {
  margin-bottom: 100px;
}
.gengduo {
  position: absolute;
  right: 0px;
  top: 12px;
  width: 66px;
  height: 58px;
  text-align: center;
  line-height: 58px;
  border-left: 1px solid #c8c8c8;
  background-color: rgba(255, 255, 255, 0.9);
}
/deep/ .van-tabs {
  .van-tab {
    border-right: 1px solid #edeff3;
    min-width: 200px;
    height: 80px;
    .van-tab__text {
      font-size: 27px;
      color: #777777;
    }
  }

  .van-tab--active .van-tab__text {
    color: #333 !important;
  }
  .van-tabs__line {
    width: 31px !important;
    height: 6px;
    background: rgba(50, 150, 250, 1);
    border-radius: 3px;
    bottom: 8px;
  }
  .van-tabs__nav {
    padding: 0;
  }
}
</style>

crc